package com.mf.all.entity.req;

import com.mf.all.groups.AddGroupsInterface;
import com.mf.all.groups.UpdateGroupsInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @Author: lmf
 * @Create: 2025/3/8 23:09
 * Description:  任务明细汇报
 */
@Data
public class TaskDetailReq {
    @Schema(description = "id")
    @NotNull(message = "id不能为空",groups = {UpdateGroupsInterface.class})
    private Integer id;

    @Schema(description = "任务id")
    @NotNull(message = "任务id不能为空",groups = {UpdateGroupsInterface.class, AddGroupsInterface.class})
    private Integer taskId;

    @Schema(description = "任务汇报明细")
    @NotBlank(message = "任务汇报明细不能为空",groups = {UpdateGroupsInterface.class, AddGroupsInterface.class})
    private String reportText;

    @Schema(description = "备注")
    private String remark;
}
